package application;

public class Zug implements Move{
	
	private Field toCell;
	private Field fromCell;
	
	public Zug(Field fromCell, Field toCell){
		this.toCell = toCell;
		this.fromCell = fromCell;
	}

	@Override
	public Cell getFromCell() {
		return fromCell;
	}

	@Override
	public Cell getToCell() {
		return toCell;
	}
	
	@Override
	public String toString(){
		return String.format(fromCell.toString()+","+toCell.toString());
	}

}

